package org.springsource.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springsource.dao.AccountDao;
import org.springsource.domain.Account;
import org.springsource.service.AccountService;

@Service
public class AccountServiceImpl implements AccountService {
	
	@Autowired
	private AccountDao accountDao;
	
	@Override
	@Transactional
	public void saveOrUpdate(Account account) {
		accountDao.saveOrUpdate(account);
		
	}

	@Override
	public Account getAccount(String username) {
		return accountDao.getAccount(username);
	}

}
